(function($){
	$('#ajaxLogin').click(function(){
		var adminName = $('#email').val();
		var password = $('#password').val();
		var data = '{"adminName":"'+adminName+'","password":"'+password+'"}';
		jQuery.ajax( {     
            type : 'POST',     
            url : 'getAdministratorByName.htm',     
            data : data,     
            dataType : 'json',     
            success : function(result) {     
               if (result && result.success == "true") {     
                    alert("login success");
                }else{
                	alert("login failed");
                }                      
            },     
            error : function(result) {     
              alert("error");     
            }     
          });     
	});
	
})(jQuery);